package com.czz.portal.service;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.IService;
import com.czz.portal.entity.Content;
import com.czz.portal.entity.Like;
import com.czz.portal.entity.Question;
import com.czz.portal.query.QuestionQuery;
import com.czz.portal.vo.QuestionDetailVo;
import com.czz.portal.vo.RecommendQuestionVo;
import com.czz.portal.vo.UserQuestionVo;

import java.util.List;

/**
 * @ClassName: QuestionService
 * @Author Czz
 * @Date 2020/2/13
 * @Time 13:27
 **/
public interface QuestionService extends IService<Question> {
    List<Question> getQuestionPageList(Page<Question> pageParam, QuestionQuery questionQuery);
    QuestionDetailVo getQuestionDetailById(String id);
    List<RecommendQuestionVo> getRecommendQuestion(String id);
    void updateQuestionClickById(String id);
    void saveQuestion(Question question, Content content);
    List<UserQuestionVo> getUserQuestionPageList(Page<UserQuestionVo> pageParam, String userId);
}
